package cn.exrick.xboot.base.vo

import cn.exrick.xboot.core.common.constant.CommonConstant
import com.baomidou.mybatisplus.annotation.FieldFill
import com.baomidou.mybatisplus.annotation.TableField
import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import lombok.Data
import lombok.experimental.Accessors
import org.springframework.format.annotation.DateTimeFormat
import java.util.*

@Data
@Accessors(chain = true)
@ApiModel("职务条件查询封装")
data class DutyVo (

    @ApiModelProperty("id")
    var id: String? = null,

    @ApiModelProperty("创建者", hidden = true)
    var createBy: String? = "",

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", hidden = true)
    @TableField(fill = FieldFill.INSERT)
    var createTime: Date? = null,

    @ApiModelProperty("职务名称")
    var dutyName: String? = null,

    @ApiModelProperty("备注")
    var description: String? = null,

    @ApiModelProperty(value = "是否启用 0启用 -1禁用")
    var status:Int = CommonConstant.STATUS_NORMAL
)